Piwik\Plugins\API\Filter\DataComparisonFilter B

Total Complexity 93
Dependencies 18
Dependents 7
Total lines 577
Lines of code 347
Logical lines of code 223
Comment lines 95
Methods 22
Properties 13

Methods 22

Method Rating Maintainability Complexity Lines of code
compareChangePercents()
A
44 13 45
requestReport()
A
41 10 54
compare()
A
46 11 38
__construct()
A
45 9 38
computeChangePercent()
S
63 7 9
checkMultiplePeriodCompare()
S
59 6 15
formatComparisonTables()
S
55 5 20
getReportsToCompare()
S
56 5 18
getMetadataFromModifiedParams()
S
56 4 16
getSegmentNameFromReport()
S
59 4 16
isCompareParamsPresent()
S
70 3 5
getColumnMappings()
S
62 2 12
checkComparisonLimit()
S
72 2 5
getIndividualComparisonRowIndices()
S
69 2 6
getComparisonSeriesIndex()
S
74 2 4
isRequestMultiplePeriod()
S
66 2 8
getPrettyComparisonLabelFromSeriesIndex()
S
61 1 11
getComparisonSeriesLabelSuffixFromParts()
S
67 1 8
getCompareSegments()
S
69 1 6
getComparePeriods()
S
70 1 5
getCompareDates()
S
70 1 5
shouldIncludeTrendValues()
S
78 1 3